$(function () {
    var str1 = "";
    var str2 = "";
    $.each(allData.index, function (i, v) {
      $.each(v.faxianhaohuo[0].faxian1, function (i, v) {
        str1 = `
        <li class="first">
            <div class="p-img">
              <a href="javascript:(0)">
                <img src="${v.fa1Img}">
              </a>
            </div>
            <div class="p-name">${v.fa1Title}</div>
            <div class="p-desc">${v.fa1Desc}</div>
            <a href="javascript:(0)" class="sew-btn">点击查看</a>
          </li>
        `;
        $(".second-content").eq(0).children("ul").append(str1);
      });
      $.each(v.faxianhaohuo[0].faxian2, function (i, v) {
        str1 = `
        <li class="sew-item">
            <div class="p-img">
              <a href="javascript:void(0)">
                <img src="${v.fa2Img}" alt="">
              </a>
            </div>
            <div class="p-info">
              <div class="p-name">${v.fa2Title}</div>
              <div class="p-desc">${v.fa2Desc}</div>
            </div>
          </li>
        `;
        $(".second-content").eq(0).children("ul").append(str1);
      });

      // 特色推荐
      $.each(v.faxianhaohuo[0].tese1, function (i, v) {
        str2 = `
        <li>
      <p class="tit">
        <a href="javascript:void(0)">
          <i class="tj-con">${v.teTitle}</i>
          ${v.teDesc}
        </a>
      </p>
      <div class="p-img p-img-scale">
        <a href="javascript:void(0)">
          <img src="${v.teImg}" alt="">
        </a>
      </div>
    </li>
        `;
        $(".sc2").eq(0).append(str2);
      });
      $.each(v.faxianhaohuo[0].tese2, function (i, v) {
        str2 = `
        <li>
      <p class="tit">
        <a href="javascript:void(0)">
          <i class="tj-con">${v.teTitle}</i>
          ${v.teDesc}
        </a>
      </p>
      <div class="p-img p-img-scale">
        <a href="javascript:void(0)">
          <img src="${v.teImg}" alt="">
        </a>
      </div>
    </li>
        `;
        $(".sc2").eq(1).append(str2);
      });
    });
    $(".second-content .p-img").hover(
      function () {
        $(this).addClass("p-img-scale");
      },
      function () {
        $(this).removeClass("p-img-scale");
      }
    );
  });